import datetime


def dateTimeFunction():

    curTime= datetime.datetime.now()
    print 'current time %s' % curTime
    formateTime = curTime.strftime('%Y-%m-%d')
    print 'current time format %s' % formateTime


def str2datetime(str_date):

    return ''


def datetime2str(sptime, formate='%Y-%m-%d %H:%M:%S'):
    return sptime.strftime(formate)






def printInfo():

    print('this  is machine info script')


if __name__ == '__main__':
    printInfo()
    dateTimeFunction()
    strs = datetime2str(datetime.datetime.now())

    print 'ssss %s' % strs
